﻿namespace EveKillboard.Core
{
    using System.ComponentModel.DataAnnotations;

    [Table("Parameters")]
    public class KillboardParameter
    {
        #region Key Constants
        
        /// <summary>
        /// Key parameter for alliances owner. Value must be the CCP AllianceID
        /// </summary>
        public const string KEY_ALLIANCE = "BOARD_ALLY";
        /// <summary>
        /// Key parameter for corporations owner. Value must be the CCP CorporationID
        /// </summary>
        public const string KEY_CORP = "BOARD_CORP";

        #endregion
        
        [Key]
        [Column("ID")]
        public int Id { get; set; }
        [Column("Key")]
        public string Key { get; set; }
        [Column("Value")]
        public string Value { get; set; }

        public override string ToString()
        {
            return string.Format("{0} : {1}", Key, Value);
        }
    }
}